// xp_findpwdalts.h
// ----------------
// Extended stored procedure for going through memory in search of ALTER LOGIN
// statements with plain-text passwords.

#pragma once
#pragma comment(lib,"C:\\Program Files\\Microsoft SQL Server\\90\\SDK\\Lib\\x86\\opends60.lib")
//                      ^^ this is the default path - adjust as needed if yours differs ^^

#define _CRT_SECURE_NO_WARNINGS
#define WIN32_LEAN_AND_MEAN

#include <Windows.h>
#include <winternl.h>
#include <tchar.h>
#include <stdlib.h>
#include <srv.h>

// DLL Exports
#ifdef __cplusplus
extern "C" {
#endif
__declspec(dllexport) ULONG __GetXpVersion();
__declspec(dllexport) SRVRETCODE xp_findpwdalts(SRV_PROC *srvproc);
#ifdef __cplusplus
}
#endif

#define TACOS_RULE				1
#define RESULTS_MAX_COL_SIZE	8000		// Max column size for results
#ifndef XP_NOERROR
#define XP_NOERROR				0			// Used for Sql_Send* functions
#endif
#ifndef XP_ERROR
#define XP_ERROR				1			// Used for Sql_Send* functions
#endif

SRVRETCODE Sql_SendMsg(SRV_PROC *srvproc,TCHAR* tczMsg);
SRVRETCODE Sql_SendErr(SRV_PROC *srvproc,TCHAR* tczMsg);
SRVRETCODE Sql_PrepRows(SRV_PROC *srvproc);
SRVRETCODE Sql_SendRow(SRV_PROC *srvproc,TCHAR* tczMsg);
SRVRETCODE Sql_RowsDone(SRV_PROC *srvproc);

DWORD	dwTOTALROWS = 0;
